package cn.edu.scau.cmi.dengzhengyu.SimpleFactoryMethodPattern;

public class SimpleFactory {
	
	public static Meat getMeat(String meatTypeString) {
		Meat meat = null;
		switch (meatTypeString) {
		case "beef":
			meat = new Beef();break;
		case "pork":
			meat = new Pork();break;
		case "Chicken":
			meat = new Chicken();break;
		}
		return meat;
	}
	
}
